﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ElasticSearchRealize.Model
{
    /// <summary>
    /// 文档的索引标识
    /// </summary>
    public interface IDocumentIndexIdentity
    {
        /// <summary>
        /// 获取在ES中存放的索引名称
        /// </summary>
        /// <returns>索引名称</returns>
        string GetIndexName();

        /// <summary>
        /// 获取在ES中存放索引中的文档Id
        /// </summary>
        /// <returns>索引中文档Id</returns>
        string GetIndexDocumentId();
    }
}
